Repository navigation
id(roc): add wasm-tools validate to roc-chat/roc-grid build.sh - #4652
Conversation
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 15 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 96e95c1455
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| mv roc-chat.wasm.opt roc-chat.wasm | ||
| $WASM_TOOLS strip roc-chat.wasm -o roc-chat.wasm.stripped | ||
| mv roc-chat.wasm.stripped roc-chat.wasm | ||
| "${WASM_TOOLS}" validate roc-chat.wasm |
There was a problem hiding this comment.
Preserve command-prefix expansion when invoking validation
When wasm-tools is absent from both PATH and /nix/store, these scripts set WASM_TOOLS="nix run nixpkgs#wasm-tools --". Unlike the existing strip invocation, the new quoted expansion treats that entire string as a single executable name, so an otherwise successful build exits with command-not-found instead of validating the artifact. Both roc-chat/build.sh and roc-grid/build.sh introduce this regression. Preserve support for the command-prefix fallback when invoking validation, either consistently with the existing invocation or by representing the command as an array.
Useful? React with 👍 / 👎.
Fixes #1538.
PR #1453 contract runs
$WASM_TOOLS validateafter strip in the example build scripts;roc-chatandroc-gridwere left without it. Adds one validate line to each, matching the other four examples (lounge, territory, roc-counter, roc-screen). No.wasmartifact changes.Verified:
shellcheck --severity=warningclean (CI gate),shfmt -dclean,git diff --checkclean on both scripts.Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.